<template>
	<view class="mallject">
		<view class="st" v-for="(item,index) in mallListData" :key="index">
			<view class="imgs">
				<image :src="item.images" alt="">
			</view>
			<view class="stcont">
				<view class="font23">{{ item.name }}</view>
				<view class="font19">{{ item.conts }}</view>
				<view class="qian">
					<text class="font19" v-show="item.newPrice!=null">￥</text>
					<text class="font27" v-show="item.newPrice!=null">{{ item.newPrice }}</text>
					<text class="font15">¥{{ item.oldPrice }}</text>
				</view>
				<view class="shopping">
					<view class="lt">
						<view class="ce">
							<text>一件8折</text>|
							<text>满100减20</text>
						</view>
					</view>
					<view class="rt">
						<image src="../../static/images/mall_ico_tianjia@2x.png" mode=""></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			mallListData:{
				type:Array,
				default:[]
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.mallject{
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
.st{
	width: 49%;
	background: #FFFFFF;
	border-radius: 15rpx;
	overflow: hidden;
	margin-top: 30rpx;
	.imgs{
		height: 290rpx;
		display: flex;
		justify-content: center;
		image{
			max-width: 290rpx;
			max-height: 290rpx;
			text-align: center;
		}
		img{
			max-width: 290rpx;
			max-height: 290rpx;
			width: 100%;
		}
	}
	.stcont{
		padding: 13rpx 19rpx;
		.font23{
			color: #252525;
			font-size: 23rpx;
			margin-bottom: 10rpx;
		}
		.font19{
			color: #666666;
			font-size: 19rpx;
			margin-bottom: 6rpx;
		}
		.qian{
			display: flex;
			align-items: baseline;
			margin-bottom: 6rpx;
			.font19{color: #F95620;font-size: 19rpx;}
			.font27{color: #F95620;font-size: 27rpx;font-weight: bold;}
			.font15{color: #999999;margin-left: 8rpx;font-size: 15rpx;}
		}
		.shopping{
			display: flex;
			justify-content: space-between;
			.lt{
				.ce{
					border-radius: 8rpx;
					border: 1rpx solid #FF2000;
					color: #FF2000;
					padding: 0px 0 6rpx;
					line-height: 1;
				}
				
				text{
					font-size: 12rpx;
					margin: 0 13rpx 0rpx;
					display: inline-block;
				}
			}
			.rt{
				image{
					width: 46rpx;
					height: 46rpx;
				}
			}
		}
	}
}		
</style>
